// dlg.txt

begintalkscript;

variables;

begintalknode 1;
	state = -1;
	nextstate = -1;
	condition = get_sdf(7,1) == 0;
	question = "special";
	text1 = "You enter the central section of the Foundry Core. It is quieter here. You don't hear the now familiar sounds of rogues shrieking in the darkness. You don't doubt that they're out there. They're just hunting for you silently.";
	text2 = "You have never been to this section of the core. You ask Mehken and find that she hasn't either. The floor here has been less worn by passing traffic.";
	text3 = "You have never been to this section of the core. The floor here has been less worn by passing traffic.";
	text4 = "There is something strange in the air here. Your skin tingles. Your hair stands up slightly. There is a lot of power in this region. You feel dizzy. Whatever is here, it is making your mental confusion worse.";
	action = SET_SDF 7 1 1;
	code =
		if (char_in_party(47) >= 0)
			rs(3);
			else rs(2);
	break;
	
begintalknode 2;
	state = -1;
	nextstate = -1;
	condition = get_sdf(7,2) == 0;
	question = "special";
	text1 = "The air in these chambers reeks of vile and caustic alchemical substances. The Shapers use lots of nasty stuff in their experiments, and the process of making essence is pretty messy. They store a lot of their goop here.";
	text2 = "There is another nasty smell in the air here, faint but noticeable under the other odors. It is sulfur. It is the stench of the fyora, but more powerful and pervasive.";
	action = SET_SDF 7 2 1;

begintalknode 3;
	state = -1;
	nextstate = -1;
	condition = get_sdf(7,3) == 0 && gf(2,3) < 2;
	question = "special";
	text1 = "This is a secure area, left well-defended by Shaper Rawal. As you walk down this corridor, you see rows of turrets in the shadows ahead. These immobile but dangerous creatures swivel to aim at you as you approach.";
	text2 = "Mehken grabs your arm. _Not wise. We should not go this way. Those turrets are a nasty variety._";
	text3 = "Continuing in this direction would be very dangerous.";
	action = SET_SDF 7 3 1;
	code =
		if (char_in_party(47) >= 0)
			rs(3);
			else rs(2);
	break;

begintalknode 4;
	state = -1;
	nextstate = -1;
	condition = get_sdf(7,4) == 0 && gf(2,3) == 2;
	question = "special";
	text1 = "This is a secure area, left well-defended by Shaper Rawal. As you walk down this corridor, you see rows of turrets in the shadows ahead. These immobile but dangerous creatures swivel to aim at you as you approach.";
	text2 = "The turrets look unhealthy. They are twitching, and their skin looks dry and cracked. Something has affected them. Perhaps the Presence.";
	text3 = "Mehken evaluates the situation. _The turrets are weak. Maybe not so for long. We can destroy them. Or we can run by. Very fast, I hope. You decide, I follow._";
	text4 = "The obelisk outside states that you are only allowed to enter here with Rawal's permission. But he is the one who told you that you can follow the Presence wherever it goes, so surely it is all right for you to proceed.";
	action = SET_SDF 7 4 1;
	code =
		if (char_in_party(47) < 0)
			rs(3);
	break;

begintalknode 5;
	state = -1;
	nextstate = -1;
	condition = get_sdf(7,5) == 0;
	question = "special";
	text1 = "Normally, when a creation falls gravely ill, it is allowed to expire. (Or is put out of its misery.) After all, the Shapers can always create more.";
	text2 = "When a valuable or experimental creation in the Foundry needs medical attention, however, it can be brought here. The finest techniques of the Shaper art can be used to keep it alive. For as long as it's needed.";
	text3 = "The infirmary seems to have been abandoned. You don't see anyone here. Yet, as you look around, you keep thinking that you hear something. Hissing. Clicking. Scratching. You can't find the source.";
	action = SET_SDF 7 5 1;

begintalknode 6;
	state = -1;
	nextstate = -1;
	condition = get_sdf(7,6) == 0 && gf(2,3) < 2;
	question = "special";
	text1 = "This stone door is the largest one you have found in the Foundry. It is sealed shut. The air is very warm, and the stone of the door is uncomfortably hot to the touch. Being here makes you feel very confused.";
	text2 = "There is a control lever by the door. The lock on it is extremely complicated. Just examining it makes your head hurt.";
	text3 = "You try your key on it. It fits, but, when you insert it, it refuses to turn. The door is sealed from the inside. At this point, you won't be able to get in.";
	action = SET_SDF 7 6 1;
	code =
		if (has_spec_item(40) == 0)
			rs(3);
	break;
	
begintalknode 7;
	state = -1;
	nextstate = -1;
	condition = get_sdf(7,9) == 0;
	question = "special";
	text1 = "You admire the equipment in the medical bay. Though the pool of essence is cracked and drained, the other devices and tools are truly impressive. A trained Shaper could bring a creation back even from the brink of death.";
	text2 = "Mehken takes it all in with a wry smile. _Is nice to see. Shapers can do great things for us creations. If it is worth the trouble to them._";
	text3 = "As you look around for useful supplies, you hear a crashing sound to the south. It sounds like a wall has collapsed.";
	action = SET_SDF 7 9 1;
	code =
		set_terrain(59,16,91);
		set_terrain(60,16,92);

		set_terrain(58,16,204);
		set_terrain(61,16,205);
		
		set_act_at_dist(1002,1);
		set_attitude(1002,10);
		
		if (char_in_party(47) < 0)
			rs(2);
	break;
	
begintalknode 20;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = "The obelisk says:";
	text2 = "  SECRET AREA";
	text3 = "  No entry without permission of the Councilor.";
	
begintalknode 21;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = "The obelisk says:";
	text2 = "  INFIRMARY";
	
begintalknode 22;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = "The obelisk says:";
	text2 = "  REAGENT STORAGE";
	
begintalknode 23;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = "The sign says:";
	text2 = "  Sample Collection - South";
	text3 = "  Please cut off power to pacification pylon when not in use.";

begintalknode 24;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "There is a dead human in long robes here. It lacks the symbol of the Shapers. This is probably an assistant or sage who was caught unawares when the creations went rogue and wasn't able to make it to safety in time.";
	text2 = "You search the pouches on her belt and find a large key. You take it.";
	text3 = "There is nothing else on the body.";
	code =
		if (gf(7,8) == 0) {
			rs(3);
			sf(7,8,1);
			set_spec_item(40,1);
			}
			else {
				rs(1); rs(2);
				}
	break;
	
begintalknode 25; // lever
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = "This lever controls the large stone door next to you.";
	text2 = "(To try to pass through, walk away and approach the door again.)";
	text3 = "This lever controls the large stone door next to you. Since the door is already open, there is nothing else you can do with it.";
	text4 = "You try to pull it, but it doesn't budge. There is no panel enabling access to the machinery below it. You have to leave it alone for now.";
	action = DEP_ON_SDF 7 20 0;
	code =
		clear_strings();
		if (gf(7,20) > 0)
			as(3);
			else {
				as(1);
				if (gf(2,3) == 2)
					as(2);
					else as(4);
				}
	break;
	
begintalknode 26;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = "There is a thin layer of thick, glowing goo at the bottom of this pool. You have no idea what it is for.";
	text3 = "This pool must be where the thick, purified essence that makes up the Geneforge is created. The essence is made here, charged, boiled down, concentrated, and carried (very carefully) to the south.";			
	action = DEP_ON_SDF 100 7 0;
	
begintalknode 27;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = "The Presence realizes, too late, that it is defeated. It surrenders control of the servile's body, which slumps to the ground like a rag doll. However, the Presence no longer has enough energy left to break free from its victim.";
	text2 = "The mist appears around the head of the dead servile. It tries to break free, stretching in one direction and then another. And then it strains too far. Something tears.";			
	text3 = "And the Presence breaks apart. The mist floats away and disappears. The creature is dead.";
	text4 = "Mehken kneels by the dead servile and rests her hand on its head. She closes her eyes, mutters something, rises and looks at you. _Thank you. That creature was a pure horror. For destroying it, you have my gratitude._";
	code =
		if (char_in_party(47) < 0)
			rs(4);
	break;
	
begintalknode 28;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = "You inspect the scrying crystal. It is completely dark. The Presence must not be anywhere nearby.";
	text2 = "Mehken says, _We should go. Never been here. Secure. Secret. Bad things happen to serviles who walk in here._";
	text3 = "_We should try hunting west of Core. I think._";
	text4 = "_We should try hunting east of Core. I think._";
	code =
		if (char_in_party(47) < 0) {
			rs(2); rs(3); rs(4);
			}
			else if (gf(2,3) == 1)
				rs(4);
				else rs(3);
	break;	
	
begintalknode 29;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = "You check the scrying crystal. It is glowing faintly.";
	text2 = "The Presence is nearby.";	
//

begintalknode 30;
	state = -1;
	nextstate = 30;
	condition = gf(2,3) == 2 && gf(7,7) == 0 && gf(7,11) == 0 && get_stat(20) >= 5;
	question = "Name";
	text1 = "As you walk down this passage, the turrets start to wave back and forth nervously. Turrets are given programming by the Shapers that create them. The turrets seem to sense something within you that makes them uncertain.";
	action = SET_SDF 7 11 1;

begintalknode 31;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "Try to calm them.";
	text1 = "You hold your hands wide and walk toward the nearest turret. Somehow, you seem to know what to do. You extend your will. You focus your thoughts on the creature, making it regard you as non-threatening.";
	text2 = "You convince the turrets that you belong here. They stop aiming at you.";
	text3 = "You let your arms fall to your sides. You still aren't sure what you did. Somehow, you have an innate aura of leadership creations respond to.";
	text4 = "Mehken looks at you nervously, as if she is afraid that you might be affecting her too.";
	action = END_TALK;
	code =
		sf(7,10,1);
		award_party_xp(100,2);
		set_attitude(1004,4);
		if (char_in_party(47) < 0)
			rs(4);
	break;
	
begintalknode 32;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "Just keep fighting.";
	text1 = "You think that you might be able to use your strange, innate command over creations to get these turrets to leave you alone. The effect, however, would probably be temporary and unreliable.";
	text2 = "Destroying them would be a far faster and more effective way to get them to leave you alone.";
	action = END_TALK;

begintalknode 40;
	state = -1;
	nextstate = 40;
	condition = 1;
	question = "Name";
	text1 = "There is a power spiral here. It seems to have been hooked up to send a constant, low flow of power into the crystal conduits here. The thing was turned on before this area was abandoned, but, for some reason, it isn't working.";
	text3 = "There is a power spiral here. It is still sending a constant, low flow of power into the crystal conduits.";
	action = DEP_ON_SDF 3 8 0;

begintalknode 41;
	state = 40;
	nextstate = -1;
	condition = gf(7,21) == 0;
	question = "Turn on the power. (Use 1 living tool.)";
	text1 = "You get on your knees on the cold stone, open the base of the power spiral, and try to determine why the power flow stopped.";
	text2 = "You very rapidly reach the limits of your knowledge of mechanics. All of the bits of wire and delicate metal parts defeat your comprehension. You get back up.";
	text3 = "You pull out a few sections of wire and reconnect them. You push the gears with your finger to make sure they aren't stuck. You deactivate the spiral and turn it back on. And, just like that, it starts working again.";
	text4 = "As the power flow resumes, you ponder how odd this is. The spiral wasn't broken or obviously sabotaged. Something just made it stop working for a time.";
	text5 = "You get on your knees on the cold stone, open the base of the power spiral, and realize that you don't have a living tool.";
	action = END_TALK;
	code =
		if (has_item(255) == 0) {
			clear_strings();
			as(5);
			}
			else {
				rs(5);
				if (get_stat(21) < 5) {
					rs(3); rs(4);
					}
					else {
						rs(2);
						sf(7,21,1);
						award_party_xp(50,2);
						}
				}
	break;
	
begintalknode 42;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "Leave it alone.";
	text1 = "Power spirals can explode if not treated properly. You leave it alone.";
	action = END_TALK;	
	
//

begintalknode 50;
	state = -1;
	nextstate = 50;
	condition = gf(7,13) == 0 && gf(2,3) == 2 && gf(6,14) == 0;
	question = "Name";
	text1 = "This stone door is the largest one you have found in the Foundry. It is sealed shut. The air is very warm, and the stone of the door is uncomfortably hot to the touch. Being here makes you feel very confused.";
	text2 = "You check the scrying crystal. It is glowing brightly. You are near the Presence. There is a control lever by the door. The lock on it is extremely complicated. Just examining it makes your head hurt.";
	text3 = "The Presence has finally learned to fear you. This time, it doesn't open the door and allow you to challenge it. Without the key, you won't be able to get in.";
	text4 = "The Presence has finally learned to fear you. This time, it doesn't open the door and allow you to challenge it. Fortunately, you have the key.";
	action = SET_SDF 6 14 2;
	code =
		if (has_spec_item(40) == 0)
			rs(4);
			else rs(3);
	break;

begintalknode 51;
	state = 50;
	nextstate = -1;
	condition = has_spec_item(40) == 0;
	question = "Leave.";
	text1 = "You walk away, wondering where you might find a key to the door. Perhaps one was stored nearby.";
	action = END_TALK;
	
begintalknode 52;
	state = 50;
	nextstate = -1;
	condition = has_spec_item(40) > 0;
	question = "Open the door and walk through.";
	text1 = "You put your key in the lock and turn it. It falls away. The door slides open.";
	text2 = "You look through the opening, trying to decide how best to assault the ... the ... your thoughts get fuzzy. You ...";
	text3 = "By the time you realize what is happening, you are already passing through the door. Calmly, blade sheathed, as if you hadn't a care in the world. Your mind seems full of fog. Sometimes you fade out of consciousness for a few moments.";
	text4 = "Almost incapacitated, you enter the lair of the Presence ...";
	action = END_TALK;
	code =
		sf(7,13,1);
		sf(7,14,1);
		sf(7,20,1);
		char_clear_action(1000);
		
		toggle_cutscene(1);
	break;
	
begintalknode 53;
	state = 50;
	nextstate = -1;
	condition = has_spec_item(40) > 0;
	question = "Leave.";
	text1 = "You decide that you aren't ready to challenge the Presence again. You back away from the door.";
	action = END_TALK;
	
begintalknode 55;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = "You stand before the Presence. It has inhabited the form of a young servile. It is alone, though it hardly needs any help to defeat you in your current condition.";
	text2 = "Mehken mutters, _I know that servile. His name is Troa. Was. He is lost now._ You think that she says something else, but you black out for a moment.";
	text3 = "The Presence takes control of the servile's vocal cords and makes it speak. The sound is raspy and hideous. _You ... wound ... me. You chase me. I take your ... mind._";
	text4 = "_I kill you._";
	text5 = "The servile holds its hands out wide. Sparks of blue energy fly out. The Presence advances upon you, ready to take advantage of your helplessness.";
	code =
		if (char_in_party(47) < 0)
			rs(2);
	break;
	
	
begintalknode 56;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = "Your blows barely affect the Presence. They don't even scratch it. It is drawing the power from this place, shielding itself.";
	text2 = "You look around, trying to comprehend where you are and what the machinery here is for. You have no idea. Your attention wanders, even as the Presence tries to kill you.";		
	
begintalknode 57;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = "You try to focus and gain control of your thoughts. It is no use. Every time you concentrate for a few moments, a cloud of sparks or a loud noise distracts you.";
	text2 = "But then, after many failed efforts, you have an actual clear thought. Some tiny, unharmed part of your consciousness tells you something.";		
	text3 = "The power around you is flowing from the south. There is something down there, something familiar. The energy, the sounds, the smell. There is something down there you have encountered before. You feel an urge to be closer to it ...";
	
begintalknode 58;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";		
	
begintalknode 59;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";		
	
begintalknode 60;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";		


//

begintalknode 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = "This is a pool of essence. Glowing, red essence, charged with magical power, glowing with a sickly inner light. The power washing off of it burns your skin. Shaper Rawal must have made this thing.";
	text2 = "You know what it is. The word comes unbidden to your mind: Geneforge. It is a Geneforge. You don't know what that means. You hardly know anything at all now. The Presence has reduced you to almost nothing.";
	text3 = "But one thought remains clear. You have a powerful compulsion to touch the swirling essence in this pool.";
	text4 = "You still don't remember much about the Geneforge, but you do recall one thing. It is incredibly dangerous. You survived contact with it once. Letting it Shape you again would be suicidal.";
	code =
		if (gf(100,7) == 0)
			rs(4);
			else {
				rs(2); rs(3);
				}
	break;

begintalknode 71;
	state = 70;
	nextstate = 71;
	condition = gf(100,7) == 0;
	question = "Touch the essence.";
	text1 = "You start to plunge your hand into the pool. Then you stop. Once again, scattered fragments of memories guide you. You know that you can only survive light contact with this powerful creation.";
	text2 = "You skim your fingertips over the surface ...";

begintalknode 72;
	state = 70;
	nextstate = -1;
	condition = gf(100,7) == 0;
	question = "Back away.";
	text1 = "The swirling essence is hypnotic, but you are able to turn away. The power of the compulsion to use it is terrifying.";
	text2 = "But then you see the Presence advancing upon you again. You don't want to tap into the power of this strange Shaper artifact, but the alternative seems to be certain death.";
	action = END_TALK;

begintalknode 73;
	state = 70;
	nextstate = -1;
	condition = gf(100,7) > 0;
	question = "Back away.";
	text1 = "The swirling essence is hypnotic, but you are able to turn away. A second use of the pool would very likely kill you.";
	action = END_TALK;
	
begintalknode 74;
	state = 71;
	nextstate = 72;
	condition = 1;
	question = "(Start screaming.)";
	text1 = "Another fragment of memory. A scream. From the first time you touched the Geneforge. It matches exactly the scream you are letting out right now.";
	text2 = "The essence flows into your skin. You feel the searing heat of it as it travels up your arm. Through your chest. Into your limbs. Into your mind.";
	text3 = "The possessed servile lurches toward you, trying to strike you down in your moment of helplessness. The raw power drives it back.";
	text4 = "The Geneforge reworks you. It contains a template, a specific humanoid form. It begins to remake you ...";
	
begintalknode 75;
	state = 72;
	nextstate = -1;
	condition = 1;
	question = "(Try to survive.)";
	text1 = "Something happened to you. You were Shaped, and Shaped again. And, in the process, you were damaged. The Geneforge Shapes you yet again, erasing the damaged parts. You are restored to an earlier version.";
	text2 = "And then, its work done, you collapse. The heat fades away. You long for nothing more than to sleep. But the Presence is still here. The servile begins to lurch toward you.";
	text3 = "You look at the pitiful creature. Your mind is clear. You see its shield. It is a weak thing, no longer an obstacle to you. You see the machinery in the room, ready to be commanded.";
	text4 = "As exhausted as you are, there is one more task to be completed.";
	action = END_TALK;
	code =
		set_resistance(53,0,0);
		set_resistance(53,1,0);
		set_resistance(53,2,0);
		set_resistance(53,3,0);
		set_resistance(53,4,0);
		set_resistance(53,5,0);
		set_resistance(53,6,0);
		award_party_xp(100,5);
		sf(100,7,1);
		alter_stat(2,1);
	break;
	
//

begintalknode 80;
	state = -1;
	nextstate = 80;
	condition = 1;
	question = "Name";
	text1 = "This is a small control panel. The creature in the stone shell has been coated with a thick layer of wax, probably to protect it from the caustic environment.";
	text2 = "Unusually for Shaper equipment, someone bothered to label this thing. These words are etched into the stone: _Emergency Purging Control._";
	text3 = "The control panel is still here. It is still sending a constant, low flow of power into the crystal conduits.";
	text5 = "The control panel is still here. However, the creature within is dormant. It doesn't respond to your pokes and prods.";
	code =
		clear_strings();
		if (gf(7,7) > 0)
			as(5);
			else if (gf(7,15) > 0)
				as(3);
				else {
					as(1);
					as(2);
					}
	break;

begintalknode 81;
	state = 80;
	nextstate = -1;
	condition = gf(7,15) == 0 && gf(100,7) > 0;
	question = "Turn on the power. (Use 1 living tool.)";
	text1 = "You poke at the controls and rapidly find that you don't know how they work. Fortunately, there is a small access panel, and you have a living tool. Someone with the right knowledge could quickly activate it with simple brute force.";
	text2 = "However, you don't have enough training. All you could do here is waste a perfectly good living tool.";
	text3 = "You smoothly insert the living tool into the access. You direct its tendrils to connect two separate conduits. Energy flows through the creature. The tool is killed instantly, but the power flow resumes.";
	text4 = "The two pylons to the south begin to hum and spark.";
	text5 = "You try to activate the controls, only to realize that you don't have a living tool.";
	action = END_TALK;
	code =
		if (has_item(255) == 0) {
			clear_strings();
			as(5);
			}
			else {
				rs(5);
				if (get_stat(21) < 5) {
					rs(3); rs(4);
					}
					else {
						rs(2);
						sf(7,15,1);
						award_party_xp(50,2);
						}
				}
	break;

begintalknode 82;
	state = 80;
	nextstate = -1;
	condition = gf(7,15) == 0 && gf(100,7) == 0;
	question = "Turn on the power.";
	text1 = "You try to understand and operate the controls. You don't get anywhere. You can barely focus on the creature that is attacking you, let alone this unfamiliar machinery.";
	action = END_TALK;
	
begintalknode 83;
	state = 80;
	nextstate = -1;
	condition = 1;
	question = "Leave it alone.";
	text1 = "Power spirals can explode if not treated properly. You leave it alone.";
	action = END_TALK;	
	
//

begintalknode 90;
	state = -1;
	nextstate = 90;
	condition = 1;
	question = "Name";
	text1 = "The Presence steers the servile toward you. The unfortunate creature moves as if its hands and feet are controlled by a clumsy puppeteer.";
	text2 = "Unlike the possessed servant mind, nothing remains of the servile. The Presence has purged it away. Its eyes are completely blank.";
	text3 = "Once again, the Presence talks to you, manipulating the servile's throat and lungs in a parody of speech. _Give ... up. Give up to me. I must stay. I can go no more. I stay here._";
	
begintalknode 91;
	state = 90;
	nextstate = -1;
	condition = 1;
	question = "Can go no more? What do you mean?";
	text1 = "_Too ... weak. Hungry. Gone too far. Many ... miles. Hunting._ It is growing harder to understand its speech. _Food here. Minds here. I stay here._";

begintalknode 92;
	state = 90;
	nextstate = 91;
	condition = 1;
	question = "Where did you come from?";
	text1 = "_Was ... made. Made by ... by creation. Was spirit. Taken from air and filled with power. Great creation made me. Great food._";
	text2 = "Made by a creation? That makes sense. A loyal Shaper would never create a necromantic monstrosity like this. Their laws forbid any such work.";
	text3 = "_My maker. Commanded me. I hungered._";
		
begintalknode 93;
	state = 90;
	nextstate = -1;
	condition = 1;
	question = "I will not speak with you, monster. You must be destroyed.";
	text1 = "The creature lets out a long, agonized hiss. Spittle flies from its lips. _Hungry! Hungry! No go! Never go! Never go!_";
	text2 = "It lurches at you, recklessly waving its blade.";
	action = END_TALK;
	
begintalknode 94;
	state = 91;
	nextstate = 92;
	condition = 1;
	question = "What did you do?";
	text1 = "_Took its mind. Mighty mind. It was not ready. Not defended. I took it. Devoured it. Left. Floated. Looked for food. Minds. Wandered._";
		
begintalknode 95;
	state = 92;
	nextstate = 93;
	condition = 1;
	question = "And you came here.";
	text1 = "_Many creations. Many minds. Much food. Went so far. So hungry. Stay here. Never go. Always feed._";
	text2 = "Mehken makes a strangled, gagging noise. She is almost overcome by disgust with this creature.";
	text3 = "_You hurt me. I kill you. I stay._";
	code =
		if (char_in_party(47) < 0)
			rs(2);
	break;
	
begintalknode 96;
	state = 93;
	nextstate = -1;
	condition = 1;
	question = "Maybe I can convince you to move on.";
	text1 = "_Too tired. Too hungry. No go! Stay! Stay always!_ The servile lets out one final screech.";
	text2 = "It lurches at you, recklessly waving its blade.";
	action = END_TALK;

begintalknode 97;
	state = 93;
	nextstate = -1;
	condition = 1;
	question = "You have done too much harm. You must die.";
	text1 = "_No! My place! Will live! Live! Feed! Stay! Never go! You die!_ The servile lets out one final screech.";
	text2 = "It lurches at you, recklessly waving its blade.";
	action = END_TALK;

begintalknode 110;
	state = -1;
	nextstate = 110;
	condition = gf(7,16) == 0 && gf(7,7) > 0 && char_in_party(47) >= 0;
	question = "Name";
	text1 = "As you walk away from the Geneforge, wanting nothing but a good meal and about eighty hours of sleep, you notice that Mehken is staring at you. She seems fascinated. And worried.";
	action = SET_SDF 7 16 1;
	
begintalknode 111;
	state = 110;
	nextstate = 111;
	condition = 1;
	question = "What is it?";
	text1 = "_You are changed. It is clear. That pool. I do not know what it is. But it ... it cured you. I can see in your eyes. Your mind is clear._";
	text2 = "_But now you go back. Back to Rawal. Now your battle begins._";
	
begintalknode 112;
	state = 110;
	nextstate = -1;
	condition = 1;
	question = "(Ignore her.)";
	text1 = "She was considering speaking with you, but she seems oddly relieved that she doesn't have to. You continue in silence.";
	action = END_TALK;
	
begintalknode 113;
	state = 111;
	nextstate = -1;
	condition = 1;
	question = "Do you know what that pool was?";
	text1 = "_I think it was a Geneforge. I have heard whispers of them. Heard many tales of strange, dangerous things they do._";
	text2 = "_Now I have seen one. And I still have no better idea of what they are for._";
	
begintalknode 114;
	state = 111;
	nextstate = 112;
	condition = 1;
	question = "What is my battle?";
	text1 = "_Rawal wants you to be his tool. I think now he sends you out, out into the world, to fight for him and do his will. He will control you with the thing in your chest._";
	text2 = "_Will you live with that? I do not think so. I think you will want to use your powers for yourself. But with what path?_";
	
begintalknode 115;
	state = 112;
	nextstate = -1;
	condition = 1;
	question = "Choose my own path?";
	text1 = "_There are many people fighting in Terrestia. Some fight for Shapers. Some for rebels. All want powerful allies to fight for them. Powerful like you._";
	text2 = "_When you travel and meet them, they will try to recruit you. They may even have power to free you from worm in your chest._";
	
begintalknode 116;
	state = 112;
	nextstate = -1;
	condition = 1;
	question = "Rawal seems competent enough. I think I'll just work for him.";
	text1 = "_Rawal hides from world. He just wants power and wealth. He makes a mistake. You can't hide from the world. World will always find you. You act, or you are put at its mercy._";
	text2 = "_But is your decision. I hope you are being wise._";
	text3 = "You wait for Mehken to say something else, but she is silent. You continue on your path away from the Foundry Core.";
	action = END_TALK;
	
begintalknode 117;
	state = 112;
	nextstate = -1;
	condition = 1;
	question = "I want to find some Shapers who are fighting. I want to defeat the rebels.";
	text1 = "Mehken looks away. _I see._";
	text3 = "You wait for Mehken to say something else, but she is silent. You continue on your path away from the Foundry Core.";
	action = END_TALK;
	code = 
		inc_flag(100,0,3);
	break;
	
begintalknode 118;
	state = 112;
	nextstate = -1;
	condition = 1;
	question = "I want to make contact with the rebels. I am no friend of the Shapers.";
	text1 = "Mehken nods. _There are servile colonies in Mera. That is the next province to the south. If you go there, you can find knowledge._";
	text3 = "You ask Mehken how she has learned so much about what is happening outside the Foundry, but she is silent. You continue on your path away from the Foundry Core.";
	action = END_TALK;
	code = 
		inc_flag(100,0,-3);
	break;
		
begintalknode 119;
	state = 112;
	nextstate = -1;
	condition = 1;
	question = "I honestly have no idea.";
	text1 = "_I understand. You only now are waking up. Soon, I think, you will see the world. You will learn how others fight to repair Terrestia. I hope, someday, you find a better path to follow._";
	text3 = "You wait for Mehken to say something else, but she is silent. You continue on your path away from the Foundry Core.";
	action = END_TALK;
		
begintalknode 120;
	state = 110;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";						
		
begintalknode 121;
	state = 110;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";						